<?php
class Admin_Form_Category extends Zend_Dojo_Form
{
    public function init()
    {
        $this->setMethod('post');
        
        $this->addElement('TextBox', 'name', array('label'=>'分类名称：', 'required'=>true))
             ->addElement('FilteringSelect', 'fid', array(
                'label'       => '上级分类：',
                'storeId'     => 'categoryStore',
                'storeType'   => 'dojo.data.ItemFileReadStore',
                'autoComplete'=>true,
                'storeParams' => array('url' => '/admin/category/list'),
                'dijitParams' => array('searchAttr' => 'name')
             ))
            ->addElement('SubmitButton', 'submit', array('label' => '提交','required'   => false, 'ignore' => true));
    }
}

